package org.adorsys.aderp.orga.service;

import java.util.List;

import org.adorsys.aderp.orga.domain.OrgaPerson;


public class OrgaPersonServiceImpl implements OrgaPersonService {

	@Override
	public OrgaPerson findByPersonNumber(String personNumber) {
		List<OrgaPerson> found = orgaPersonRepository.findByPersonNumber(personNumber);
		if(found.isEmpty()) return null;
		return found.iterator().next();
	}

}
